package com.hqx.oop.datatransmit;

public class TestA {
    int i;
    public static void main(String[] args) {
        TestA ta = new TestA();
        System.out.println(ta.i);
        ta.change(ta.i);
        System.out.println(ta.i);
        ta.change1(ta);
        System.out.println(ta.i);
    }
    public void change(int i) {
        i++;
        System.out.println(i);
    }

    public void change1(TestA t) {
        t.i++;
        System.out.println(t.i);
    }
}
